import pandas as pd 

label = pd.read_csv('annotation.csv')
preds = pd.read_csv('ans.csv')

total = len(label['SpeciesID'])
right = 0
for i, j in list(zip(label['SpeciesID'], preds['SpeciesID'])):
    if i == j:
        right += 1

acc = float(right) / float(total)
print('[Right:{} / Total:{}], Accuracy:{}'.format(right, total, acc))
